package com.homework.test17;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        //创建对象
        Student student = new Student();
        //键盘输入
        Scanner sc = new Scanner(System.in);
        System.out.println("(:>请输入学员编号：");
        student.setId(sc.next());
        System.out.println("(:>请输入学员姓名：");
        student.setName(sc.next());
        System.out.println("(:>请输入学员性别：");
        student.setSex(sc.next());
        System.out.println("(:>请输入学员身高：");
        student.setHeight(sc.nextDouble());
        System.out.println("(:>请输入学员年龄：");
        student.setAge(sc.nextInt());

        System.out.println("您录入的信息如下");
        student.printOf();
    }
}
